package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "用户表")
@TableName(value = "blog_user")
public class BlogUser extends BaseColumn {
    @ApiModelProperty(value = "用户表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "账号")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "昵称")
    @TableField(value = "nickname")
    private String nickname;

    @ApiModelProperty(value = "性别(1:男，0：女)")
    @TableField(value = "sex")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    @TableField(value = "birth")
    private Date birth;

    @ApiModelProperty(value = "联系电话")
    @TableField(value = "phone")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty(value = "用户状态，0：正常，1：已注销")
    @TableField(value = "state")
    private Integer state;

    @ApiModelProperty(value = "身份证号码")
    @TableField(value = "id_card")
    private String idCard;

    @ApiModelProperty(value = "头像")
    @TableField(value = "avatar")
    private String avatar;
}

